package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.CoolAppCardTemplateEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface CoolAppCardTemplateDao {
    Integer insert(CoolAppCardTemplateEntity entity);

    void insertBatch(List<CoolAppCardTemplateEntity> list);

    CoolAppCardTemplateEntity getByKey(@Param("key") Long key );

    Integer update(CoolAppCardTemplateEntity entity);

    List<CoolAppCardTemplateEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    CoolAppCardTemplateEntity getByUseScene(@Param("cardType") Integer cardType, @Param("useScene") Integer useScene);

    CoolAppCardTemplateEntity getByCardId(@Param("cardId") String cardId);
}